import Main from '../page/Main'
import Login from '../page/Login'
import One from '../page/Popu/One'
import Two from '../page/Popu/Two'
import Three from '../page/Popu/Three'


const routes = [
    {
        from: '/',
        to: "/main/one"
    },
    {
        path: "/login",
        component: Login
    },
    {
        path: '/main',
        component: Main,
        children: [
            //热点
            {
                path: '/main/one',
                component: One,
                meta:{
                    author:["管理员","用户"],
                    name:'热点'
                }
            },
            //睡眠
            {
                path: '/main/two',
                component: Two,
                meta:{
                    author:["管理员"],
                    name:'睡眠'
                }
            },
            //话题
            {
                path: "/main/three",
                component: Three,
                meta:{
                    author:["管理员"],
                    name:'话题'
                }
            }
        ]
    }
]

export default routes